//
//  Login.h
//  百车易车险
//
//  Created bychenxu on 14-7-31.
//  Copyright (c) 2014年 chenxu. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "User.h"
#import "Car.h"
@interface Login : NSObject
//请求时候用的参数，和user独立开
@property (readwrite, nonatomic, strong) NSString *username, *password,
                                                  *j_captcha; //验证码
@property (readwrite, nonatomic, strong) NSNumber *remember_me;

- (NSString *)goToLoginTipWithCaptcha:(BOOL)needCaptcha;
- (NSDictionary *)toParams;
- (NSDictionary *)toUpdateidParams;
+ (BOOL) isLogin;
+ (void) doLogin:(NSDictionary *)loginData;
+ (void) doLogout;
+ (User *)curLoginUser;
+ (void)updateUser:(User*)newuser;


+ (NSString *)curCid;
+ (NSString *)curCarid;
+ (Car*) curCar;
+ (void) selectCar:(Car*)car;

+ (void)cleanDictionary:(NSMutableDictionary *)dictionary;
+ (NSMutableDictionary*)lowercase:(NSMutableDictionary*)dict;

//推送相关sdk

+ (BOOL)isOwnerOfProjectWithOwnerId:(NSNumber *)owner_id;
@end
